import request from '@/utils/request'

// 列表
export const orderPageList = (data) => {
  return request({
    url: '/scm-orders-otc/page-list',
    method: 'post',
    data
  })
}

// 摊销列表--采购
export const ordersOtcGetAmortizationList = (params) => {
  return request({
    url: '/scm-orders-otc/getAmortizationList',
    method: 'get',
    params
  })
}

// 摊销列表--销售
export const smSellOrderGetAmortizationList = (params) => {
  return request({
    url: '/sm-sell-order/getAmortizationList',
    method: 'get',
    params
  })
}

// 摊销删除
export const ordersOtcGetdelAmortization = (id) => {
  return request({
    url: `/scm-orders-otc/delAmortization?id=${id}`,
    method: 'get'
  })
}

// 摊销新增-采购
export const ordersOtcSaveAmortizationList = (data) => {
  return request({
    url: '/scm-orders-otc/saveAmortization',
    method: 'post',
    data
  })
}

// 摊销新增-销售
export const smSellOrderSaveAmortizationList = (data) => {
  return request({
    url: '/sm-sell-order/saveAmortization',
    method: 'post',
    data
  })
}




